#!python
from Crypto import Random
import time
fp = Random.new()

def generate_trade_no():
    end_n = fp.read(5).encode("hex")
    return "%s%s%s" % ("I4HDDS", time.strftime("%Y%m%d%H%M%S"), end_n)

